package com.pace.ribbon.asyn;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * 传统的异步调用
 */
public class TraditionAsyn {

    final static ExecutorService exec = Executors.newFixedThreadPool(10);

    public void submit() {
        exec.execute(new Runnable() {
            @Override
            public void run() {

                System.out.println("执行异步方法");

            }
        });
    }
}
